#sidebar {
    position: absolute;
    /*background-color: #2594eb;*/
    background-color: #e8f2d0;
    height: auto;
    overflow-y: hidden;
}
#sidebar .main-menu {
    height: 100%;
    overflow: auto;
    margin-right: 6px;
}
@media (min-width: 768px) {
    #sidebar {
        width: 200px;
        height: 100vh;
        float: left;
    }
    #main {
        float: left;
        width: 70%;
    }
}
@media (max-width: 768px) {
    #sidebar {
        min-width: 100px;
        width: 200px;
    }
    #sidebar .main-menu {
        padding-bottom: 4em;
        position: absolute;
    }
}
#sidebar li > a {
    color: #000;
}
.nav > li > a:focus,
.nav > li > a:hover,
.selected-nav > a {
    background-color: #943de6;
}
.user-logout {
    position: absolute !important;
    bottom: 0.95em;
    width: 86%;
}

.red-star {
    color: red;
}

#main {
    background-color: #f9f7ed;
    height: 100vh;
    left: 200px;
    position: absolute;
    left:200px;
}
#dragbar {
    background-color:black;
    height:100%;
    position: absolute;
    right: 0;
    top: 0;
    width: 8px;
    cursor: col-resize;
}
#ghostbar {
    width:3px;
    background-color:#000;
    opacity:0.5;
    position:absolute;
    cursor: col-resize;
    z-index:999
}
.no-scroll {
    overflow-x: hidden !important;
    overflow-y: hidden !important;
}

.main-menu > ul.ztree {
    min-height: 3em;
    width: auto;
    min-width: 5em;
}
.main-menu > ul.ztree li a {
    /* 防止有滚动条时，拖拽条遮挡文字 */
    padding-right: 8px;
}